package s2elinshu;

public class J15Ex04Extends {

	class J15Ex04Extends0 {
		private int n;
		
		public int getN() {	return n;}
		public void setN(int i) {
			n = i;
		}
	} // J15Ex04Extends0 class 닫음

	class J15Ex04Extends1 extends J15Ex04Extends0 {
		public String s;
		public int m;
		private char c;

		// private만 멤버변수를 만들어 주면 됨(public도 만들어 주면 좋지만 용량생각...)
		public void setC(char ch) {c = ch;	}
		public char getC() {return c;}
	} // J15Ex04Extends1 class 닫음

	class J15Ex04Extends2 extends J15Ex04Extends1 {
		public double d;
	} // J15Ex04Extends2 class 닫음
	
}// J15Ex04Extends class 닫음
